#include "bf.h"
int main(int argc, const char *argv[])
{
    RESULT res;
    if (argc != 3)
    {
        printf("Usage: %s <string> <substring>\n", argv[0]);
        return 1;
    }
    res = contains(argv[1], argv[2]);
    if (res == NOT_FOUND)
        printf("'%s' does not contain '%s'\n", argv[1], argv[2]);
    else
        printf("'%s' contains '%s' at position %d\n", argv[1], argv[2], res);
}